package com.design.observer.football;

/**
 * @author xiemiao
 * @description
 * @date 2023/08/18
 */
public class Client {
    public static void main(String[] args) {
        FieldPlayer player1 = new FieldPlayer("梅西");
        FieldPlayer player2 = new FieldPlayer("C罗");

        ChiefCoach chiefCoach = new ChiefCoach("主教练");

        chiefCoach.addPlayer(player1);
        chiefCoach.addPlayer(player2);

        chiefCoach.notifyPlayer("进攻");

    }
}
